package com.tang.cas_test;

import sun.misc.Unsafe;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author tmh
 * @date 2024/3/24 9:51
 * @description
 */
public class CASTest {
    public static void main(String[] args) {

        AtomicInteger atomicInteger=new AtomicInteger(10);
        int i = atomicInteger.incrementAndGet();
        int i1 = atomicInteger.incrementAndGet();
        System.out.println(i);
    }
}
